home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Files
/
Errors
/
FileError.h
< prev
next >
Wrap
Text File
|
2000-06-23
|
373b
|
25 lines
// FileError.h
#ifndef FileError_h
#define FileError_h
#ifndef OSError_h
#include "OSError.h"
#endif
class FileError: public OSError
{
public:
FileError() : OSError() {}
FileError( OSErr e ) : OSError( e ) {}
FileError( OSError& e ) : OSError( e ) {}
};
inline void ThrowFileError( OSErr e )
{
if ( e != noErr )
throw FileError(e);
}
#endif